import React, { Component } from 'react';
import {
    View,
    ListView,
} from 'react-native';

import Re_project6_1 from './re_project6_1'

const ds = new ListView.DataSource({ rowHasChanged: (r1, r2) => { r1 !== r2 } });//listView 数据判断方式
export default class Re_project6 extends Component {
    // 初始化模拟数据
    constructor(props) {
        super(props);
    }
    render() {
        //创建listView数据源
        const dataSource = ds.cloneWithRows(this.props.xzProjectExps);
        return (
            <View>
                <ListView
                    dataSource={dataSource}
                    renderRow={this.renderRow.bind(this)}
                    enableEmptySections={true}
                />
            </View>
        );
    }
    //list子项加载方法
    renderRow(rowData) {
        return (
            <Re_project6_1
                xzProjectExp={rowData}
                resume={this.props.resume}
                actions={this.props.actions}
                navigation={this.props.navigation} />
        )
    }
}